import { _decorator, Component, Node, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

/**
 * 棋子着落点
 */
@ccclass('ChessDot')
export class ChessDot extends Component {
    start() {

    }

    // update(deltaTime: number) { }
    /**
     * 坐标
     * @param x 
     * @param y 
     * @returns 
     */
    public SetPos(x:number, y:number):ChessDot{
        this.node.setPosition(new Vec3(x, y, 0));
        return this;
    }

    public SetActive(value:boolean):ChessDot{
        this.node.active = value;
        return this;
    }
}

